﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JMT.Data.Events
{
    public abstract class JEvent<T> : EventBase where T : IJModel
    {
        public T JModel { get; private set; }

        public JEvent(string name, T jModel)
            : base("JMT", "MODEL", name)
        {
            JModel = jModel;
        }
    }

    public interface IJEventHandler<T> : IEventHandler where T : JEvent<IJModel>
    {
        void Handle(T @event);
    }
}
